<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.min.js"></script>
    <link href="css/mui.min.css" rel="stylesheet"/>
		<script src="js/jquery-2.2.1.js"></script>
	</head>
	<body>

周<input type="text" id="week" />
老师<input type="text" id="teach" />
开始节数<input type="text" id="time" />
结束节数<input type="text" id="endtime" />
教室<input type="text" id="addr" />
<button id="sum">提交</button>
		<script>
			$("#sum").click(function(){
				$.post("http://localhost:8080/insert",
				{week:$("#week").val(),teach:$("#teach").val(),
				time:$("#time").val(),endtime:$("#endtime").val(),
				addr:$("#addr").val()},function(data){
					alert(data.errorCode);
				})
				
			})
			
		</script>
</html>
